<%--
  Created by IntelliJ IDEA.
  User: XWB
  Date: 2019/12/8
  Time: 12:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>查看通讯组成员</title>
    <link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css">
    <script language="javascript">
        function openWin(url)
        {
            window.open (url, "look", "height=500, width=500, toolbar=no, menubar=no, scrollbars=yes,resizable=yes, location=no, status=no");

        }
        function deleteDepartment()
        {
            var  str = confirm("是否确定删除上级栏目？");
            if(str == true)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    </script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="2%" valign="middle" background="${pageContext.request.contextPath}/images/bg_03.gif">&nbsp;</td>
        <td width="2%" valign="middle" background="${pageContext.request.contextPath}/images/bg_03.gif"><img src="${pageContext.request.contextPath}/images/main_28.gif" width="9" height="9" align="absmiddle"></td>
        <td height="30" valign="middle" background="${pageContext.request.contextPath}/images/bg_03.gif"><font color="#FFFFFF">通讯组管理</font></td>
    </tr>
</table>
<br>
<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class="td_page">      <div align="right">
            <input name="Submit2" type="button" class="buttonface02" value="新建通讯组" onClick="openWin('${pageContext.request.contextPath}/jsp/address_list/addDepartment.jsp')">
            <input name="Submit" type="button" class="buttonface02" value="  返回  " onClick="location.href='${pageContext.request.contextPath}/newsReport/newsReportManager.do'">
        </div></td>
    </tr>
</table>
<table width="95%"  border="0" cellpadding="0" cellspacing="0" class="table02" align="center">
    <tr>
        <td width="37%" align="right"><div align="left"><span class="td_title">朋友通讯组成员列表</span></div></td>
        <td width="63%" height="30" align="right">
            <img src="${pageContext.request.contextPath}/images/1.gif" width="4" height="5" align="absmiddle">
            <a href="${pageContext.request.contextPath}/newsReport/findDepartment.do?pageNum=1&pid=${sessionScope.pid}">首页</a>　
            <img src="${pageContext.request.contextPath}/images/2.gif" width="3" height="5" align="absmiddle">
            <a href="${pageContext.request.contextPath}/newsReport/findDepartment.do?pageNum=${(page1.pageNum<=1)?page1.pageNum:(page1.pageNum-1)}&pid=${sessionScope.pid}">上一页</a>　
            <img src="${pageContext.request.contextPath}/images/2-2.gif" width="3" height="5" align="absmiddle">　
            <a href="${pageContext.request.contextPath}/newsReport/findDepartment.do?pageNum=${(page1.pageNum>=page1.totalPages)?page1.pageNum:(page1.pageNum+1)}&pid=${sessionScope.pid}">下一页</a>　
            <img src="${pageContext.request.contextPath}/images/3.gif" width="4" height="5" align="absmiddle">
            <a href="${pageContext.request.contextPath}/newsReport/findDepartment.do?pageNum=${page1.totalPages}&pid=${sessionScope.pid}">末页</a>　　
            共${page1.pageNum}/${page1.totalPages} 页 ${page1.totalRows} 条记录
        </td>
    </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="0" class="table01">
    <tr>
        <td class="td_top"></td>
        <td class="td_top">联系人</td>
        <td class="td_top">E-mail</td>
        <td class="td_top">成员描述</td>
        <td class="td_top">移动电话</td>
        <td class="td_top">删除成员</td>
        <%--<td class="td_top">修改成员</td>--%>
    </tr>
    <c:forEach items="${page1.datas}" var="data">
        <tr>
            <td class="td_02"></td>
            <td class="td_02">${data.depName}</td>
            <td class="td_02">${data.email}</td>
            <td class="td_02">${data.content}</td>
            <td class="td_02">${data.phone}</td>
            <td class="td_02"><a href="${pageContext.request.contextPath}/newsReport/deleteDepartment.do?id=${data.id}" onClick="deleteDepartment()">删除</a></td>
            <%--<td class="td_02"><a href="${pageContext.request.contextPath}/newsReport/findDepa?id=${data.id}" >修改</a></td>--%>
        </tr>
    </c:forEach>

</table>
</body>
</html>

